home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000041_fdc@columbia.edu_Wed Dec 3 12:24:19 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.os.linux.misc,comp.protocols.kermit.misc
  4. Subject: Re: Serial Telnet to PBX Switch
  5. Followup-To: comp.os.linux.misc
  6. Date: 3 Dec 2003 16:56:33 GMT
  7. Organization: Columbia University
  8. Lines: 82
  9. Message-ID: <slrnbss5e1.e02.fdc@sesame.cc.columbia.edu>
  10. References: <1a78c305.0312021949.62bab77d@posting.google.com>
  11. Reply-To: fdc@columbia.edu
  12. NNTP-Posting-Host: sesame.cc.columbia.edu
  13. X-Trace: newsmaster.cc.columbia.edu 1070470593 12779 128.59.59.56 (3 Dec 2003 16:56:33 GMT)
  14. X-Complaints-To: postmaster@columbia.edu
  15. NNTP-Posting-Date: 3 Dec 2003 16:56:33 GMT
  16. User-Agent: slrn/0.9.7.4 (SunOS)
  17. Xref: newsmaster.cc.columbia.edu comp.os.linux.misc:615177 comp.protocols.kermit.misc:14717
  18.  
  19. In article <1a78c305.0312021949.62bab77d@posting.google.com>,
  20. Chris McKeever wrote:
  21. : I have been doing some searching for how I can connect from a linux
  22. : box to our phone PBX.  Below is a thread that helped me get a good
  23. : portion of the way, but I am still a bit stuck.
  24. : I have been successful in connecting through the serial port using
  25. : minicom or kermit to the PBX from the linux command line.  I however
  26. : am faced with the issue that some of the commands that I want to
  27. : perform just wont work.
  28. : The PBX asks what type of terminal, the choices are:
  29. : 513,715,4410,4425,VT220
  30. : It seems that the most vanilla of these is the VT220.  
  31. If you are running Kermit from the Console window, your terminal
  32. type is "Linux console".  If you are running Kermit in an xterm or
  33. similar window, your terminal type depends on the xterm program.
  34. It's vt220 if you are using Xfree86 xterm:
  35.  
  36.   http://dickey.his.com/xterm/xterm.html
  37.  
  38. Since that's what the PBX wants, that's what you should use.
  39.  
  40. : Kermit and minicom work, but I do not have the F3 key, which 'sends'
  41. : the changes into the switch, for the most part, everything else is
  42. : functional.
  43. : ** Kermit connects, but I have no backspace - believe it emulates a
  44. : VT220, so I am confused as to this..am I mistaken here?
  45.  
  46. In Unix (including Linux), Kermit is a communication program, not a
  47. terminal emulator (as it is in DOS or Windows).  This is explained at
  48. length here:
  49.  
  50.   http://www.columbia.edu/kermit/ckfaq.html#term
  51.  
  52. Your terminal emulator is the console or X window in which you are running
  53. Kermit.  The same is true for other Unix-based terminal programs (cu, tip,
  54. telnet, ssh, etc) and I believe also of minicom.
  55.  
  56. : So I am trying to figure out how to get Kermit to behave nicely with
  57. : the function keys and the backspace, or minicom to work with the
  58. : function keys.
  59. About Backspace, see:
  60.  
  61.   http://www.columbia.edu/kermit/backspace.html
  62.  
  63. and after reading the explanatory material, find the answer in the
  64. section, "When C-Kermit Is the Client".
  65.  
  66. Function keys are another story.  Unix applications (other than X-based
  67. ones) can't see the function keys, so this must be handled by your xterm
  68. setup, normally in the xmodmap configuration file.  You can find some
  69. examples here:
  70.  
  71.   http://www.columbia.edu/kermit/ckubwr.html
  72.  
  73. (search for "xmodmap" -- there are various references throughout the 
  74. document.)  You have to find out what characters a particular F key sends,
  75. and then map the key to send them in in .xmodmaprc or whatever.  If you
  76. are using Xfree86 xterm (which does indeed emulate the vt220) then the
  77. F keys should already be set up.  Just make sure you are pushing the
  78. right one.  For example the DEC "Do" key is F16 (not F3).
  79.  
  80. On a real DEC terminal, F16 ("Do") sends ESC [ 29 ~ (that's Escape,
  81. left bracket, 2, 9, and tilde, in sequence with no spaces).
  82.  
  83. Since you are probably using a PC keyboard, you'll find that there is no
  84. F15 key -- PC F-keys only go up to F12, but DEC keyboards go up to F20.
  85. So usually there is a mapping like Shift F1 = F13, Shift F2 = F14, etc.
  86. Some people find this so annoying that they go out and purchase DEC
  87. keyboards for their PCs :-)  But it can all be handled in xmodmap too.
  88.  
  89. In Windows or DOS, you could do the mapping directly in Kermit, where
  90. Kermit really is a terminal emulator since it can get (more or less)
  91. directly at the keyboard and screen.
  92.  
  93. - Frank
  94.